package com.example.chat.common.exception;

import java.io.Serial;

public class BaseException extends RuntimeException{
    @Serial
    private static final long serialVersionUID = -226993884204135790L;

    private int code;

    public BaseException(int code){
        this.code = code;
    }

    public BaseException(int code, String message){
        super(message);
        this.code = code;
    }

    public BaseException(int code, String message, Throwable throwable){
        super(message, throwable);
        this.code = code;
    }

    public int getCode(){
        return this.code;
    }
}
